package com.task5.entity;

public class Product {
	private int id;
	private String sname;
	private float price;
	private String sdesc;

	public Product() {
	}
	
	public String getPKName() {
		return "id";
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public String getSdesc() {
		return sdesc;
	}

	public void setSdesc(String sdesc) {
		this.sdesc = sdesc;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Product [id=");
		builder.append(id);
		builder.append(", sname=");
		builder.append(sname);
		builder.append(", price=");
		builder.append(price);
		builder.append(", sdesc=");
		builder.append(sdesc);
		builder.append("]");
		return builder.toString();
	}
}
